package top.zhangjianyong.blog.params.blog;

import jakarta.validation.constraints.NotNull;
import top.zhangjianyong.blog.validation.ListValue;

/**
 * @author zhangjianyong
 * @since 2024/8/5 下午9:24
 */
public record BlogTopParam(
    @NotNull(message = "博客id不能为空") Long id,
    @ListValue(
            values = {0, 1},
            message = "置顶状态仅允许0-非置顶，1-置顶")
        Integer topFlag) {}
